# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-gearboy
pkgver=0_git20181103
pkgrel=0
_commit="368521ef59f3a0e600346ba22041b05331188275"
pkgdesc="Game Boy / Gameboy Color emulator for libretro"
url="https://github.com/libretro/Gearboy"
arch="all"
license="GPL-3.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/Gearboy/archive/$_commit.tar.gz"
builddir="$srcdir/Gearboy-$_commit"
options="!check" # No tests

build() {
	make -C platforms/libretro
}

package() {
	install -Dm644 platforms/libretro/gearboy_libretro.so \
		"$pkgdir"/usr/lib/libretro/gearboy_libretro.so
}

sha512sums="df67e3002aa87b3ea31583842b5c56b11aea48be0c662602b31fd9ea789e510afef4b01e72de54dcfe56720a3d86ebef66f2143f7c309eeb53506e2101b87589  libretro-gearboy-368521ef59f3a0e600346ba22041b05331188275.tar.gz"
